package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * FinTrans generated by hbm2java
 */
@Entity
@Table(name="fin_trans"
    ,catalog="lmis"
)
public class FinTrans  implements java.io.Serializable {


     private long recNo;
     private Short accPeriodNo;
     private Short accPeriodMonthNo;
     private String finTransCodeShort;
     private String finTransCode;
     private Date recDate;
     private Short orgNo;
     private Short loanContractGrpNo;
     private Short finTransTypeNo;
     private BigDecimal transAmt;
     private String docCode01;
     private Short fromOrgNo;
     private Short toOrgNo;
     private Short fromBankNo;
     private Short toBankNo;
     private Date transStartDate;
     private Date transEndDate;
     private String comment;
     private Short statusPosted;
     private Short createdUserNo;
     private Date createdDtm;
     private Short payPartNo;
     private Set<FinTransTmd02FromOrg> finTransTmd02FromOrgs = new HashSet<FinTransTmd02FromOrg>(0);
     private Set<FinTransTmd02FromSubOrg> finTransTmd02FromSubOrgs = new HashSet<FinTransTmd02FromSubOrg>(0);
     private Set<FinTransDetail> finTransDetails = new HashSet<FinTransDetail>(0);

    public FinTrans() {
    }

	
    public FinTrans(long recNo, BigDecimal transAmt) {
        this.recNo = recNo;
        this.transAmt = transAmt;
    }
    public FinTrans(long recNo, Short accPeriodNo, Short accPeriodMonthNo, String finTransCodeShort, String finTransCode, Date recDate, Short orgNo, Short loanContractGrpNo, Short finTransTypeNo, BigDecimal transAmt, String docCode01, Short fromOrgNo, Short toOrgNo, Short fromBankNo, Short toBankNo, Date transStartDate, Date transEndDate, String comment, Short statusPosted, Short createdUserNo, Date createdDtm, Short payPartNo, Set<FinTransTmd02FromOrg> finTransTmd02FromOrgs, Set<FinTransTmd02FromSubOrg> finTransTmd02FromSubOrgs, Set<FinTransDetail> finTransDetails) {
       this.recNo = recNo;
       this.accPeriodNo = accPeriodNo;
       this.accPeriodMonthNo = accPeriodMonthNo;
       this.finTransCodeShort = finTransCodeShort;
       this.finTransCode = finTransCode;
       this.recDate = recDate;
       this.orgNo = orgNo;
       this.loanContractGrpNo = loanContractGrpNo;
       this.finTransTypeNo = finTransTypeNo;
       this.transAmt = transAmt;
       this.docCode01 = docCode01;
       this.fromOrgNo = fromOrgNo;
       this.toOrgNo = toOrgNo;
       this.fromBankNo = fromBankNo;
       this.toBankNo = toBankNo;
       this.transStartDate = transStartDate;
       this.transEndDate = transEndDate;
       this.comment = comment;
       this.statusPosted = statusPosted;
       this.createdUserNo = createdUserNo;
       this.createdDtm = createdDtm;
       this.payPartNo = payPartNo;
       this.finTransTmd02FromOrgs = finTransTmd02FromOrgs;
       this.finTransTmd02FromSubOrgs = finTransTmd02FromSubOrgs;
       this.finTransDetails = finTransDetails;
    }
   
     @Id 

    
    @Column(name="REC_NO", unique=true, nullable=false)
    public long getRecNo() {
        return this.recNo;
    }
    
    public void setRecNo(long recNo) {
        this.recNo = recNo;
    }

    
    @Column(name="ACC_PERIOD_NO")
    public Short getAccPeriodNo() {
        return this.accPeriodNo;
    }
    
    public void setAccPeriodNo(Short accPeriodNo) {
        this.accPeriodNo = accPeriodNo;
    }

    
    @Column(name="ACC_PERIOD_MONTH_NO")
    public Short getAccPeriodMonthNo() {
        return this.accPeriodMonthNo;
    }
    
    public void setAccPeriodMonthNo(Short accPeriodMonthNo) {
        this.accPeriodMonthNo = accPeriodMonthNo;
    }

    
    @Column(name="FIN_TRANS_CODE_SHORT", length=5)
    public String getFinTransCodeShort() {
        return this.finTransCodeShort;
    }
    
    public void setFinTransCodeShort(String finTransCodeShort) {
        this.finTransCodeShort = finTransCodeShort;
    }

    
    @Column(name="FIN_TRANS_CODE", length=20)
    public String getFinTransCode() {
        return this.finTransCode;
    }
    
    public void setFinTransCode(String finTransCode) {
        this.finTransCode = finTransCode;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="REC_DATE", length=10)
    public Date getRecDate() {
        return this.recDate;
    }
    
    public void setRecDate(Date recDate) {
        this.recDate = recDate;
    }

    
    @Column(name="ORG_NO")
    public Short getOrgNo() {
        return this.orgNo;
    }
    
    public void setOrgNo(Short orgNo) {
        this.orgNo = orgNo;
    }

    
    @Column(name="LOAN_CONTRACT_GRP_NO")
    public Short getLoanContractGrpNo() {
        return this.loanContractGrpNo;
    }
    
    public void setLoanContractGrpNo(Short loanContractGrpNo) {
        this.loanContractGrpNo = loanContractGrpNo;
    }

    
    @Column(name="FIN_TRANS_TYPE_NO")
    public Short getFinTransTypeNo() {
        return this.finTransTypeNo;
    }
    
    public void setFinTransTypeNo(Short finTransTypeNo) {
        this.finTransTypeNo = finTransTypeNo;
    }

    
    @Column(name="TRANS_AMT", nullable=false, precision=15)
    public BigDecimal getTransAmt() {
        return this.transAmt;
    }
    
    public void setTransAmt(BigDecimal transAmt) {
        this.transAmt = transAmt;
    }

    
    @Column(name="DOC_CODE_01", length=20)
    public String getDocCode01() {
        return this.docCode01;
    }
    
    public void setDocCode01(String docCode01) {
        this.docCode01 = docCode01;
    }

    
    @Column(name="FROM_ORG_NO")
    public Short getFromOrgNo() {
        return this.fromOrgNo;
    }
    
    public void setFromOrgNo(Short fromOrgNo) {
        this.fromOrgNo = fromOrgNo;
    }

    
    @Column(name="TO_ORG_NO")
    public Short getToOrgNo() {
        return this.toOrgNo;
    }
    
    public void setToOrgNo(Short toOrgNo) {
        this.toOrgNo = toOrgNo;
    }

    
    @Column(name="FROM_BANK_NO")
    public Short getFromBankNo() {
        return this.fromBankNo;
    }
    
    public void setFromBankNo(Short fromBankNo) {
        this.fromBankNo = fromBankNo;
    }

    
    @Column(name="TO_BANK_NO")
    public Short getToBankNo() {
        return this.toBankNo;
    }
    
    public void setToBankNo(Short toBankNo) {
        this.toBankNo = toBankNo;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="TRANS_START_DATE", length=10)
    public Date getTransStartDate() {
        return this.transStartDate;
    }
    
    public void setTransStartDate(Date transStartDate) {
        this.transStartDate = transStartDate;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="TRANS_END_DATE", length=10)
    public Date getTransEndDate() {
        return this.transEndDate;
    }
    
    public void setTransEndDate(Date transEndDate) {
        this.transEndDate = transEndDate;
    }

    
    @Column(name="COMMENT", length=200)
    public String getComment() {
        return this.comment;
    }
    
    public void setComment(String comment) {
        this.comment = comment;
    }

    
    @Column(name="STATUS_POSTED")
    public Short getStatusPosted() {
        return this.statusPosted;
    }
    
    public void setStatusPosted(Short statusPosted) {
        this.statusPosted = statusPosted;
    }

    
    @Column(name="CREATED_USER_NO")
    public Short getCreatedUserNo() {
        return this.createdUserNo;
    }
    
    public void setCreatedUserNo(Short createdUserNo) {
        this.createdUserNo = createdUserNo;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CREATED_DTM", length=19)
    public Date getCreatedDtm() {
        return this.createdDtm;
    }
    
    public void setCreatedDtm(Date createdDtm) {
        this.createdDtm = createdDtm;
    }

    
    @Column(name="PAY_PART_NO")
    public Short getPayPartNo() {
        return this.payPartNo;
    }
    
    public void setPayPartNo(Short payPartNo) {
        this.payPartNo = payPartNo;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="finTrans")
    public Set<FinTransTmd02FromOrg> getFinTransTmd02FromOrgs() {
        return this.finTransTmd02FromOrgs;
    }
    
    public void setFinTransTmd02FromOrgs(Set<FinTransTmd02FromOrg> finTransTmd02FromOrgs) {
        this.finTransTmd02FromOrgs = finTransTmd02FromOrgs;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="finTrans")
    public Set<FinTransTmd02FromSubOrg> getFinTransTmd02FromSubOrgs() {
        return this.finTransTmd02FromSubOrgs;
    }
    
    public void setFinTransTmd02FromSubOrgs(Set<FinTransTmd02FromSubOrg> finTransTmd02FromSubOrgs) {
        this.finTransTmd02FromSubOrgs = finTransTmd02FromSubOrgs;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="finTrans")
    public Set<FinTransDetail> getFinTransDetails() {
        return this.finTransDetails;
    }
    
    public void setFinTransDetails(Set<FinTransDetail> finTransDetails) {
        this.finTransDetails = finTransDetails;
    }




}


